<form id="add-form" class="form-horizontal col-sm-12" role="form" data-toggle="validator" method="POST" action="">
    {:token()}

    <div class="form-group">
        <div class="alert alert-warning-light no-margin">
            订单回款信息
        </div>
    </div>


    <div class="form-group" >
        <label class="control-label col-xs-12 col-sm-2">审批人:</label>
        <div class="col-xs-4 col-sm-4" >
            <input name="row[flow_staff_ids]" data-source="qingdongams/department/staff/get_staffes" class="form-control selectpage" type="text" data-multiple="true"  value="" data-required="true">
        </div>
    </div>
    <div class="form-group" >
        <label class="control-label col-xs-4 col-sm-2">客户名称:</label>
        <div class="col-xs-4 col-sm-4" >
            <input id="c-consignee" data-rule="required" class="form-control" placeholder="收货人姓名" name="" readonly
                   value="{$row.customer.name}" type="text">
        </div>
    </div>
    <div class="form-group" >
        <label class="control-label col-xs-4 col-sm-2">客户订单:</label>
        <div class="col-xs-4 col-sm-4" >
            <input data-rule="required" class="form-control " placeholder="" name="" readonly value="{$row.num}" type="text">
        </div>
    </div>
    <div class="form-group" >
        <label class="control-label col-xs-4 col-sm-2">回款编号:</label>
        <div class="col-xs-4 col-sm-4" >
            <input data-rule="required" class="form-control " placeholder="" name="row[number]"  value="{$num}" type="text" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-4 col-sm-2">回款日期:</label>
        <div class="col-xs-4 col-sm-4" >
            <input name="row[return_time]" type="text" class="form-control datetimepicker" value=""   data-date-format="YYYY-MM-DD" data-required="true">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-4 col-sm-2">回款金额:</label>
        <div class="col-xs-4 col-sm-4" >
            <input name="row[money]" data-rule="required" class="form-control " placeholder="请输入回款金额" name="" value="" type="number">
        </div>
    </div>
    <div class="form-group" >
        <label  class="control-label col-xs-4 col-sm-2">回款方式:</label>
        <div class="col-xs-4 col-sm-4">
            <select  id="consume-type"  class="form-control col-xs-4 col-sm-8" name="row[return_type]" data-rule="required">
                <option value="">请选择回款方式</option>
                {foreach name="receivabletype" item="val"}
                <option value="{$val}" data-key="{$key}" >{$val}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-4 col-sm-2">备注信息:</label>
        <div class="col-xs-4 col-sm-4">
            <textarea name="row[remark]"  class="form-control" rows="3" placeholder="请填写备注"></textarea>
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
